angular.module("Horizon").service("Location_ser",["$http",function($http){
	this.getData=function(opt){
		var config={
			url:"",
			successCallback:function(){
				
			}
		}
		for(var i in opt){
			config[i]=opt[i];
		}
		$http({
            method:'GET',
			url:config.url,
            headers:{'Content-Type': 'application/x-www-form-urlencoded'}
        }).success(
        	function(data,status){
        		if(status==200){
        			config.successCallback(data.Data,status);
        		}
        	}
        ).error(
           function(data,status,headers,config){
            	console.log(data,status,headers,config);
            }
        )
	}
}])
